#
# Be sure to run `pod lib lint JMLibrary.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'JMLibrary'
    s.version          = '0.2.1'
    s.summary          = '假面科技工具库合集'
    
    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!
    
    s.description      = '假面科技工具库合集(分享)'
    
    s.homepage         = 'https://coding.jiamiantech.com/p/Library-ios'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'zhangkang' => 'kang.zhang@jiamiantech.com' }
    s.source           = { :git => 'https://gitee.com/LOVEGLXR/Library-ios-test.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
    
    s.ios.deployment_target = '8.0'
    
    s.subspec 'JMShare' do |share|
        share.dependency 'Weibo_SDK'
        share.dependency 'WechatOpenSDK'
        
        share.public_header_files = 'JMLibrary/JMShare/Classes/*.h'
        share.source_files = 'JMLibrary/JMShare/Classes/**/*'
        share.ios.vendored_frameworks = 'JMLibrary/JMShare/Frameworks/*.framework'
        # share.resource_bundles = {
        #    'JMLibrary' => ['JMLibrary/JMShare/Assets/**']
        # }
        # share.resources = ['JMLibrary/JMShare/Assets/**']
    end

    s.subspec 'JMAgoraSdk' do |agorasdk|
        agorasdk.source_files = 'JMLibrary/JMAgoraSdk/*'
        agorasdk.vendored_frameworks = 'JMLibrary/JMAgoraSdk/*.framework'
        agorasdk.vendored_libraries  = 'JMLibrary/JMAgoraSdk/*.a'
    end

    # s.source_files = 'JMLibrary/Classes/**/*'
    
    # s.resource_bundles = {
    #   'JMLibrary' => ['JMLibrary/Assets/*.png']
    # }
    
    # s.public_header_files = 'Pod/Classes/**/*.h'
    # s.frameworks = 'UIKit', 'MapKit'
    # s.dependency 'AFNetworking', '~> 2.3'
end
